<div id="tabs">
    <ul class="sortable">

        <?php
        $sth = $this->model->GetRounds();
        $TabIndex = 0;
        while ($data = $sth->fetchColumn()) {
            $RoundNr = $data['nr'];
            $TabIndex++;
            ?>      
            <li><a href="#fragment-<?php echo $TabIndex ?>"><span>Round <?php echo $RoundNr ?></span></a></li>
            <?php
        }
        ?>    
    </ul>